Quiz 1 - Introduction to ASP.NET

  • When a dynamic web page is requested, the web server passes the request to the
    • Application Server.
  • When a web page is requested for the second time
    • ASP.NET creates an instance of the page from the page’s final assembly.
  • If you’re working alone on an application and you don’t have access to a server computer, you’re using
    • A stand-alone environment.
  • The main purpose of the .NET Framework Class Library is to
    • provide the classes that are used for developing .NET applications.
  • HTTP is known as a stateless protocol because
    • The server that receives an HTTP request for a web page has no way to associate the browser that sent the request with its previous requests.
  • The only software component that’s required to run a web application on a client is
    • The Web Browser
  • When IIS receives an HTTP request for an ASP.NET page, it passes the request on to
    • ASP.NET
  • The protocol that’s used by a web browser and a web server to communicate in a web application is
    • HTTP
  • To maintain the state of an application, ASP.NET provides
    • view state and session state
      • "View state refers to the page-level state management mechanism, which is utilized by the HTML pages emitted by ASP.NET applications to maintain the state of the web form controls and widgets. The state of the controls are encoded and sent to the server at every form submission in a hidden field known as __VIEWSTATE. The server sends back the variable so that when the page is re-rendered, the controls render at their last state."
      • "Session state is a collection of user-defined session variables, which are persisted during a user session. These variables are unique to different instances of a user session, and are accessed using the Session collection. Session variables can be set to be automatically destroyed after a defined time of inactivity, even if the session does not end. At the client end, a user session is identified either by a cookie or by encoding the session ID in the URL itself."
    • Profiles
      • a user profile stored in the database that keeps track of their choices or data that persists between session
    • Application state
      • "Application_OnStart event fires on the loading of the first instance of the applications and are available till the last instance exits. Application state variables are accessed using the Applications collection, which provides a wrapper for the application state variables."
  • Unlike a static web page, a dynamic web page
    • Is defined by web form.